package com.csyf.manager.dao;

import com.csyf.manager.entity.SysAgent;
import tk.mybatis.mapper.common.Mapper;

import java.util.Map;

/**
 * @Author: casper
 * @Description:
 * @Date: Created in 2019/3/20 10:21
 */
public interface SysAgentDao extends Mapper<SysAgent> {

    /**
     * 根据代理商id更新代理商信息
     * @param agentForm
     * @return
     */
    int updateByAgentId(SysAgent agentForm);

    /**
     * 更新代理商状态
     * @param params
     * @return
     */
    int updateStatusBatch(Map<String,Object> params);
}
